import {
	mapState
} from 'vuex'
import store from "@/store"

export default {
	data() {
		return {
			$uStoreKey: []
		}
	},
	created() {
		try {
			$uStoreKey = store.state ? Object.keys(store.state) : [];
		} catch (e) {

		}
		// 将vuex方法挂在到$u中
		this.$u.vuex = (name, value) => {
			this.$store.commit('$uStore', {
				name,
				value
			})
		}
	},
}
